package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

public interface DepartmentService {
    //上传科室
    void saveDepartment(Map<String, Object> paramMap);

    //获取分页列表
    Page<Department> selectPageDept(int page, int limit);

    //删除科室
    void removeDept(String hoscode, String depcode);

    //根据医院编号，查询医院所有科室列表
    List<DepartmentVo> findDeptTree(String hoscode);

    //根据科室编号，和医院编号，查询科室名称
    String getDepName(String hoscode, String depcode);

    //获取科室根据科室编号，和医院编号
    Department getDepartment(String hoscode, String depcode);
}
